# 所谓多态：定义时的类型和运行时的类型不一样，此时就成为多态。
class Animal:
    def say_who(self):
        print("小动物们来介绍自己啦！")
        pass
    pass
class Cat(Animal):
    def say_who(self):
        print("我是小猫猫猫")
        pass
    pass
class Dog(Animal):
    def say_who(self):
        print("我是小狗狗")
        pass
    pass
class Pig(Animal):
    def say_who(self):
        print("我是小猪")
        pass
    pass
class tiger(Animal):
    def say_who(self):
        print("我是老虎")
        pass
    pass
class Duck(Animal):
    def say_who(self):
        print("我是鸭子")
        pass
    pass
class Person(Animal):
    def say_who(self):
        print("我是人")
def jieshaoziji(o):
    for item in o:
        item.say_who()
    pass
list1=[Cat(),Dog(),Pig(),Duck(),tiger(),Person()]
jieshaoziji(list1)